package com.whp.yky.yky.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.whp.yky.yky.entity.Process;
import com.whp.yky.yky.entity.poentity.Document;
import com.whp.yky.yky.mapper.ProcessMapper;
import com.whp.yky.yky.service.ProcessService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author whp
 * @since 2021-03-08
 */
@Service
public class ProcessServiceImpl extends ServiceImpl<ProcessMapper, Process> implements ProcessService {


    @Autowired
    private ProcessMapper processMapper;

    @Override
    public IPage<Process> getSProcessInfo(IPage<Process> page, Process process) {
        return page.setRecords(processMapper.getSProcessInfo(page,process));
    }

    @Override
    public IPage<Process> getZProcessInfo(IPage<Process> page, Process process) {
        return page.setRecords(processMapper.getZProcessInfo(page,process));
    }

    @Override
    public IPage<Process> getGProcessInfo(IPage<Process> page, Process process) {
        return page.setRecords(processMapper.getGProcessInfo(page,process));
    }

    @Override
    public IPage<Process> getAlllProcessInfo(IPage<Process> page, Process process) {
        return page.setRecords(processMapper.getAlllProcessInfo(page,process));
    }
}
